package com.dd.dus.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dd.dc.entity.users.DRolePermissionRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 角色权限关系表 Mapper 接口
 * </p>
 *
 * @author JueDream
 * @since 2021-03-05
 */
public interface DRolePermissionRelationMapper extends BaseMapper<DRolePermissionRelation> {

    /**
     * 不管用??
     * @param roleIds
     * @return
     */
    @Select(" SELECT * FROM D_ROLE_PERMISSION_RELATION " +
            " WHERE ROLE_ID IN (#{roleIds}) ")
    List<DRolePermissionRelation> queryRPList(@Param("roleIds")List<Integer> roleIds);



}
